// ####################
// # -- SPRITESETS -- #
// ####################

spriteset (spriteset_teatree_farm_building, "gfx/tea-farm-building.png") {
	[  0, 0, 64, 43, -31, -12, NOCROP]
	[ 64, 0, 64, 43, -31, -12, NOCROP]
	[128, 0, 64, 43, -31, -12, NOCROP]
	[192, 0, 64, 43, -31, -12, NOCROP]
}
spriteset (spriteset_teatree_farm_field, "gfx/tea-farm-field.png") {
	[   0, 0, 64, 32, -31, -2, NOCROP]
	[  64, 0, 64, 32, -31, -2, NOCROP]
	[ 128, 0, 64, 32, -31, -2, NOCROP]
	[ 192, 0, 64, 32, -31, -2, NOCROP]
	[ 256, 0, 64, 32, -31, -2, NOCROP]
	[ 320, 0, 64, 32, -31, -2, NOCROP]
	[ 384, 0, 64, 32, -31, -2, NOCROP]
	[ 448, 0, 64, 32, -31, -2, NOCROP]
	[ 512, 0, 64, 32, -31, -2, NOCROP]
	[ 576, 0, 64, 32, -31, -2, NOCROP]
	[ 640, 0, 64, 32, -31, -2, NOCROP]
	[ 704, 0, 64, 32, -31, -2, NOCROP]
	[ 768, 0, 64, 32, -31, -2, NOCROP]
	[ 832, 0, 64, 32, -31, -2, NOCROP]
	[ 896, 0, 64, 32, -31, -2, NOCROP]
	[ 960, 0, 64, 32, -31, -2, NOCROP]
	[1024, 0, 64, 32, -31, -2, NOCROP]
	[1088, 0, 64, 32, -31, -2, NOCROP]
	[1152, 0, 64, 32, -31, -2, NOCROP]
	[1216, 0, 64, 32, -31, -2, NOCROP]
	[1280, 0, 64, 32, -31, -2, NOCROP]
	[1344, 0, 64, 32, -31, -2, NOCROP]
	[1408, 0, 64, 32, -31, -2, NOCROP]
	[1472, 0, 64, 32, -31, -2, NOCROP]
	[1536, 0, 64, 32, -31, -2, NOCROP]
	[1600, 0, 64, 32, -31, -2, NOCROP]
	[1664, 0, 64, 32, -31, -2, NOCROP]
	[1728, 0, 64, 32, -31, -2, NOCROP]
	[1792, 0, 64, 32, -31, -2, NOCROP]
	[1856, 0, 64, 32, -31, -2, NOCROP]
	[1920, 0, 64, 32, -31, -2, NOCROP]
	[1984, 0, 64, 32, -31, -2, NOCROP]
	[2048, 0, 64, 32, -31, -2, NOCROP]
	[2112, 0, 64, 32, -31, -2, NOCROP]
	[2176, 0, 64, 32, -31, -2, NOCROP]
	[2240, 0, 64, 32, -31, -2, NOCROP]
	[2304, 0, 64, 32, -31, -2, NOCROP]
	[2368, 0, 64, 32, -31, -2, NOCROP]
	[2432, 0, 64, 32, -31, -2, NOCROP]
	[2496, 0, 64, 32, -31, -2, NOCROP]
	[2560, 0, 64, 32, -31, -2, NOCROP]
	[2624, 0, 64, 32, -31, -2, NOCROP]
	[2688, 0, 64, 32, -31, -2, NOCROP]
	[2752, 0, 64, 32, -31, -2, NOCROP]
	[2816, 0, 64, 32, -31, -2, NOCROP]
	[2880, 0, 64, 32, -31, -2, NOCROP]
	[2944, 0, 64, 32, -31, -2, NOCROP]
	[3008, 0, 64, 32, -31, -2, NOCROP]
}

// #######################
// # -- SPRITELAYOUTS -- #
// #######################

// # Farm Buildings #
// ##################

spritelayout spritelayout_teatree_farm_building_1 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_building(0); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_building_2 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_building(1); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_building_3 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_building(2); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_building_4 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_building(3); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}

// # Animated Farm Fields #
// ########################

spritelayout spritelayout_teatree_farm_field_0 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(0); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_1 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(1); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_2 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(2); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_3 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(3); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_4 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(4); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_5 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(5); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_6 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(6); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_7 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(7); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_8 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(8); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_9 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(9); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_10 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(10); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_11 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(11); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_12 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(12); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_13 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(13); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_14 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(14); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_15 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(15); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_16 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(16); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_17 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(17); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_18 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(18); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_19 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(19); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_20 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(20); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_21 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(21); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_22 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(22); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_23 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(23); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_24 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(24); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_25 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(25); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_26 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(26); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_27 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(27); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_28 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(28); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_29 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(29); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_30 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(30); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_31 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(31); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_32 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(32); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_33 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(33); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_34 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(34); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_35 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(35); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_36 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(36); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_37 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(37); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_38 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(38); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_39 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(39); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_40 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(40); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_41 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(41); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_42 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(42); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_43 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(43); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_44 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(44); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_45 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(45); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_46 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(46); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}
spritelayout spritelayout_teatree_farm_field_47 {
	ground { sprite: GROUNDSPRITE_CLEARED; }
	building { sprite: spriteset_teatree_farm_field(47); recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}


// ###########################
// # -- ANIMATION CONTROL -- #
// ###########################

switch (FEAT_INDUSTRYTILES, SELF, switch_teatree_farm_field_animation, animation_frame) {
	 0: spritelayout_teatree_farm_field_0;
	 1: spritelayout_teatree_farm_field_1;
	 2: spritelayout_teatree_farm_field_2;
	 3: spritelayout_teatree_farm_field_3;
	 4: spritelayout_teatree_farm_field_4;
	 5: spritelayout_teatree_farm_field_5;
	 6: spritelayout_teatree_farm_field_6;
	 7: spritelayout_teatree_farm_field_7;
	 8: spritelayout_teatree_farm_field_8;
	 9: spritelayout_teatree_farm_field_9;
	10: spritelayout_teatree_farm_field_10;
	11: spritelayout_teatree_farm_field_11;
	12: spritelayout_teatree_farm_field_12;
	13: spritelayout_teatree_farm_field_13;
	14: spritelayout_teatree_farm_field_14;
	15: spritelayout_teatree_farm_field_15;
	16: spritelayout_teatree_farm_field_16;
	17: spritelayout_teatree_farm_field_17;
	18: spritelayout_teatree_farm_field_18;
	19: spritelayout_teatree_farm_field_19;
	20: spritelayout_teatree_farm_field_20;
	21: spritelayout_teatree_farm_field_21;
	22: spritelayout_teatree_farm_field_22;
	23: spritelayout_teatree_farm_field_23;
	24: spritelayout_teatree_farm_field_24;
	25: spritelayout_teatree_farm_field_25;
	26: spritelayout_teatree_farm_field_26;
	27: spritelayout_teatree_farm_field_27;
	28: spritelayout_teatree_farm_field_28;
	29: spritelayout_teatree_farm_field_29;
	30: spritelayout_teatree_farm_field_30;
	31: spritelayout_teatree_farm_field_31;
	32: spritelayout_teatree_farm_field_32;
	33: spritelayout_teatree_farm_field_33;
	34: spritelayout_teatree_farm_field_34;
	35: spritelayout_teatree_farm_field_35;
	36: spritelayout_teatree_farm_field_36;
	37: spritelayout_teatree_farm_field_37;
	38: spritelayout_teatree_farm_field_38;
	39: spritelayout_teatree_farm_field_39;
	40: spritelayout_teatree_farm_field_40;
	41: spritelayout_teatree_farm_field_41;
	42: spritelayout_teatree_farm_field_42;
	43: spritelayout_teatree_farm_field_43;
	44: spritelayout_teatree_farm_field_44;
	45: spritelayout_teatree_farm_field_45;
	46: spritelayout_teatree_farm_field_46;
	47: spritelayout_teatree_farm_field_47;
}

random_switch(FEAT_INDUSTRYTILES, SELF, random_switch_teatree_farm_field_animation_trigger) {
	1: return  0; 1: return  1; 1: return  2; 1: return  3;
	1: return  4; 1: return  5; 1: return  6; 1: return  7;
	1: return  8; 1: return  9; 1: return 10; 1: return 11;
	1: return 12; 1: return 13; 1: return 14; 1: return 15;
	1: return 16; 1: return 17; 1: return 18; 1: return 19;
	1: return 20; 1: return 21; 1: return 22; 1: return 23;
	1: return 24; 1: return 25; 1: return 26; 1: return 27;
	1: return 28; 1: return 29; 1: return 30; 1: return 31;
	1: return 32; 1: return 33; 1: return 34; 1: return 35;
	1: return 36; 1: return 37; 1: return 38; 1: return 39;
	1: return 40; 1: return 41; 1: return 42; 1: return 43;
	1: return 44; 1: return 45; 1: return 46; 1: return 47;
}

// #######################
// # -- INDUSTRYTILES -- #
// #######################

item (FEAT_INDUSTRYTILES, item_industry_teatree_farm_building_tile_1) {
	property { substitute: 27; }
	graphics { default: spritelayout_teatree_farm_building_1; }
}
item (FEAT_INDUSTRYTILES, item_industry_teatree_farm_building_tile_2) {
	property { substitute: 27; }
	graphics { default: spritelayout_teatree_farm_building_2; }
}
item (FEAT_INDUSTRYTILES, item_industry_teatree_farm_building_tile_3) {
	property { substitute: 27; }
	graphics { default: spritelayout_teatree_farm_building_3; }
}
item (FEAT_INDUSTRYTILES, item_industry_teatree_farm_building_tile_4) {
	property { substitute: 27; }
	graphics { default: spritelayout_teatree_farm_building_4; }
}

item (FEAT_INDUSTRYTILES, item_industry_teatree_farm_field_tile) {
	property {
		substitute: 27;
		animation_info: [ANIMATION_LOOPING,48];
		animation_speed: 4;
		animation_triggers: bitmask(ANIM_TRIGGER_INDTILE_CONSTRUCTION_STATE);
		special_flags:	bitmask(INDTILE_FLAG_RANDOM_ANIMATION);
	}
	graphics {
		anim_control: random_switch_teatree_farm_field_animation_trigger;
		switch_teatree_farm_field_animation;
	}
}

// #####################
// # -- TILELAYOUTS -- #
// #####################

// # Farm #
// ########

tilelayout item_industry_teatree_farm_tilelayout_1 {
	0, 1: item_industry_teatree_farm_field_tile;
	2, 0: item_industry_teatree_farm_field_tile;
	3, 2: item_industry_teatree_farm_field_tile;
	2, 3: item_industry_teatree_farm_field_tile;
	0, 3: item_industry_teatree_farm_field_tile;

	1, 1: item_industry_teatree_farm_building_tile_1;
	1, 2: item_industry_teatree_farm_building_tile_2;
	0, 2: item_industry_teatree_farm_building_tile_4;
}
tilelayout item_industry_teatree_farm_tilelayout_2 {
	1, 2: item_industry_teatree_farm_field_tile;
	2, 0: item_industry_teatree_farm_field_tile;
	3, 2: item_industry_teatree_farm_field_tile;
	2, 3: item_industry_teatree_farm_field_tile;
	0, 3: item_industry_teatree_farm_field_tile;

	0, 0: item_industry_teatree_farm_building_tile_3;
	1, 0: item_industry_teatree_farm_building_tile_1;
	0, 1: item_industry_teatree_farm_building_tile_2;
}
tilelayout item_industry_teatree_farm_tilelayout_3 {
	1, 0: item_industry_teatree_farm_field_tile;
	2, 2: item_industry_teatree_farm_field_tile;
	3, 3: item_industry_teatree_farm_field_tile;
	3, 1: item_industry_teatree_farm_field_tile;
	0, 2: item_industry_teatree_farm_field_tile;

	1, 2: item_industry_teatree_farm_building_tile_3;
	1, 3: item_industry_teatree_farm_building_tile_2;
	0, 3: item_industry_teatree_farm_building_tile_4;
}
tilelayout item_industry_teatree_farm_tilelayout_4 {
	0, 0: item_industry_teatree_farm_field_tile;
	1, 1: item_industry_teatree_farm_field_tile;
	3, 1: item_industry_teatree_farm_field_tile;
	3, 3: item_industry_teatree_farm_field_tile;
	0, 3: item_industry_teatree_farm_field_tile;

	2, 0: item_industry_teatree_farm_building_tile_1;
	1, 2: item_industry_teatree_farm_building_tile_2;
	0, 2: item_industry_teatree_farm_building_tile_4;
}

// ####################
// # -- INDUSTRIES -- #
// ####################

item (FEAT_INDUSTRIES, item_industry_teatree_farm) {
	property {
		substitute: INDUSTRYTYPE_COAL_MINE;
		name: string(STR_FARM_INDUSTRY_NAME);
		nearby_station_name: string(STR_STATION, string(STR_TOWN), string(STR_FARM_INDUSTRY_NAME));
		life_type: IND_LIFE_TYPE_ORGANIC;
		cargo_types:[
			produce_cargo("TEAL", 12)
		];
		layouts:[
			item_industry_teatree_farm_tilelayout_1,
			item_industry_teatree_farm_tilelayout_2,
			item_industry_teatree_farm_tilelayout_3,
			item_industry_teatree_farm_tilelayout_4
		];
		min_cargo_distr: 4;
		prob_map_gen: 8;
		prob_in_game: 5;
		map_colour: 86;
	}
}

